#include<stdio.h>
int main() {
	float m = 0.0;
	float c = 0.0;
	float en = 0.0;
	float ph = 0.0;
	float ch = 0.0;
	while (scanf("%f%f%f%f%f", &m, &c, &en, &ph, &ch) != -1) {
		printf("%.1f %.1f %.1f %.1f %.1f %.1f\n", m, c, en, ph, ch, m + c + en + ph + ch);
	}
	return 0;
}
